package me.ezjs.framework.util;

import java.util.Date;

/**
 * token管理器
 * <p/>
 * Created by zero-mac on 16/3/10.
 */
public class TokenUtil {

    public static final String generate(String username) {
        String token = new SHA1Util().getDigestOfString(("EZJS_" + username + DateUtil.getOrderNum())
                .getBytes());
        return token;
    }
}
